﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200132B RID: 4907
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeChallengeRaidRewardCsReq : IMessage<TakeChallengeRaidRewardCsReq>, IMessage, IEquatable<TakeChallengeRaidRewardCsReq>, IDeepCloneable<TakeChallengeRaidRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003DE7 RID: 15847
		// (get) Token: 0x0600DBA9 RID: 56233 RVA: 0x0024C570 File Offset: 0x0024A770
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeChallengeRaidRewardCsReq> Parser
		{
			get
			{
				return TakeChallengeRaidRewardCsReq._parser;
			}
		}

		// Token: 0x17003DE8 RID: 15848
		// (get) Token: 0x0600DBAA RID: 56234 RVA: 0x0024C577 File Offset: 0x0024A777
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeChallengeRaidRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DE9 RID: 15849
		// (get) Token: 0x0600DBAB RID: 56235 RVA: 0x0024C589 File Offset: 0x0024A789
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeChallengeRaidRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DBAC RID: 56236 RVA: 0x0024C590 File Offset: 0x0024A790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRaidRewardCsReq()
		{
		}

		// Token: 0x0600DBAD RID: 56237 RVA: 0x0024C598 File Offset: 0x0024A798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRaidRewardCsReq(TakeChallengeRaidRewardCsReq other) : this()
		{
			this.rewardId_ = other.rewardId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DBAE RID: 56238 RVA: 0x0024C5BD File Offset: 0x0024A7BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRaidRewardCsReq Clone()
		{
			return new TakeChallengeRaidRewardCsReq(this);
		}

		// Token: 0x17003DEA RID: 15850
		// (get) Token: 0x0600DBAF RID: 56239 RVA: 0x0024C5C5 File Offset: 0x0024A7C5
		// (set) Token: 0x0600DBB0 RID: 56240 RVA: 0x0024C5CD File Offset: 0x0024A7CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RewardId
		{
			get
			{
				return this.rewardId_;
			}
			set
			{
				this.rewardId_ = value;
			}
		}

		// Token: 0x0600DBB1 RID: 56241 RVA: 0x0024C5D6 File Offset: 0x0024A7D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeChallengeRaidRewardCsReq);
		}

		// Token: 0x0600DBB2 RID: 56242 RVA: 0x0024C5E4 File Offset: 0x0024A7E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeChallengeRaidRewardCsReq other)
		{
			return other != null && (other == this || (this.RewardId == other.RewardId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DBB3 RID: 56243 RVA: 0x0024C614 File Offset: 0x0024A814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RewardId != 0U)
			{
				num ^= this.RewardId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DBB4 RID: 56244 RVA: 0x0024C653 File Offset: 0x0024A853
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DBB5 RID: 56245 RVA: 0x0024C65B File Offset: 0x0024A85B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DBB6 RID: 56246 RVA: 0x0024C664 File Offset: 0x0024A864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RewardId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.RewardId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DBB7 RID: 56247 RVA: 0x0024C698 File Offset: 0x0024A898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RewardId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RewardId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DBB8 RID: 56248 RVA: 0x0024C6D6 File Offset: 0x0024A8D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeChallengeRaidRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RewardId != 0U)
			{
				this.RewardId = other.RewardId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DBB9 RID: 56249 RVA: 0x0024C707 File Offset: 0x0024A907
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DBBA RID: 56250 RVA: 0x0024C710 File Offset: 0x0024A910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.RewardId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400573F RID: 22335
		private static readonly MessageParser<TakeChallengeRaidRewardCsReq> _parser = new MessageParser<TakeChallengeRaidRewardCsReq>(() => new TakeChallengeRaidRewardCsReq());

		// Token: 0x04005740 RID: 22336
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005741 RID: 22337
		public const int RewardIdFieldNumber = 5;

		// Token: 0x04005742 RID: 22338
		private uint rewardId_;
	}
}
